package main

import (
	"qxn/mapper"

	"github.com/gin-gonic/gin"
)

func main() {
	r := gin.Default()
	router := r.Group("/qxn")
	{
		router.GET("/ping", func(ctx *gin.Context) {
			ctx.JSON(200, gin.H{
				"message": "qxn-pong",
			})
		})
		router.POST("/create", mapper.Asset{}.Create)
	}
	r.Run(":9000")
}
